package com.yoj.common.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.yoj.common.constant.CommonConstant;

/**
 * 分页请求
 */
@Deprecated
@Data
@ApiModel(value = "分页请求参数")
public class PageRequest {

    @ApiModelProperty(value = "当前页号")
    private int current = 1;

    @ApiModelProperty(value = "页面大小")
    private int pageSize = 10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序顺序（默认升序）")
    private String sortOrder = CommonConstant.SORT_ORDER_ASC;
}
